/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package OtherPubs;

import Rout.GoBefore;
import org.testng.annotations.*;

public class Uploading {

    private GoBefore browser = new GoBefore();     
                
    @BeforeMethod
    public void setUp() throws Exception {   
        System.out.println("\n Run test: " + getClass().getSimpleName());   
        browser.userAg = 1;
        browser.curURL = "http://uploading.com/files/get2/e8ed346c/1?";
        browser.xpFilename = "//*[@id=\"content\"]/div/div[1]/div[2]/div[2]/div[1]/span[2]";
        browser.cssFilename = "#content > div > div.thankyou > div.content_column.centered > div.file_detailes > div.row.name > span.value";       
        browser.clButton = "method_title";
        browser.cssButton = "#content > div > div.thankyou > div.content_column.centered > div.clearfix.thankyou_message > div > div > div";
        browser.xpButton = "///*[@id=\"content\"]/div/div[1]/div[2]/div[1]/div/div/div";
        browser.repDir = getClass().getSimpleName();
        
        
        browser.lpurl = "http://uploading.com/files/acc_thankyou";
        

    }        
            
    @Test
    public void SmalButton () throws Exception {           
        
        browser.setUp();
        browser.ipDetect();
        browser.testRun();
        browser.lpDetect();
        browser.verFilename();
        browser.verFilePresent();
    
    }
    
    @AfterMethod
    public void ThearsDown() {
        browser.driver.quit();      
        
    }
    
}

